﻿using System;
using System.Collections.Generic;
using Spotted.Data.Entities;

namespace Spotted.Data.Repositories
{
    public interface IPlacesRepository
    {
        /// <summary>
        /// A list of the places found near the given point
        /// </summary>
        IList<Place> Places { get; }

        /// <summary>
        /// Given Latitude and Longitude values find nearby places
        /// </summary>
        /// <param name="latitude">The current latitude</param>
        /// <param name="longitude">The current longitude</param>
        void FindNearbyPlaces(double latitude, double longitude);

        /// <summary>
        /// Called when the operation completes. List of places is passed for retrieval
        /// </summary>
        event EventHandler FindNearbyPlacesCompleted;
    }
}
